﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ys.Base.Common
{
    /// <summary>
    ///分页页面实体
    /// </summary>
   public class PageEntity
    {
       

        private int _pagesize = 20;

        private int _page = 1;
        /// <summary>
        /// 当前页
        /// </summary>
        public int Page { get { return _page; }
            set {
                _page = value < 1 ? 1 : value;
            }
        }
        /// <summary>
        /// 单页条数
        /// </summary>
        public int Limit
        {
            get { return _pagesize; }
            set
            {  _pagesize=value>100000 ? 100000 : value; }
        }



        

    }
}
